package com.hf.action;

import javax.servlet.http.HttpSession;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hf.listener.MySessionContext;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;


abstract public class BaseAction extends ActionSupport{
	public String tip,info;	//Action处理过程中的提示信息	
	public String openId;
	
	private Integer uid;
	private String sessionId;
	
	
	abstract public  String execute();
	
	public BaseAction() {
		try {
			   freemarker.log.Logger
			     .selectLoggerLibrary(freemarker.log.Logger.LIBRARY_NONE);
			  } catch (ClassNotFoundException e) {
			   e.printStackTrace();
			  }
			  
			  
	}
	
	

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}




	
}
